1. /* sioshftr.cpp by K.Tsuru */
  2. // function ID = 411 BRADIX
  3. /************************************************
  4. SInteger class
  5. It provides the bit shift operation to the right,ie
  6. divides by 2^n.
  7. ************************************************/
  8. #ifndef SN_H
  9. #include "sn.h"
  10. #endif
  11. SInteger operator>>(const SInteger& m, ulong n){
  12. if(!n || (m.Sign(411) == 0)) return m;
  13. SInteger result(m);
  14. result.BitShift(-(long)n);
  15. return result;
  16. }

sioshftr.cpp : last modifiled at 2015/12/14 20:14:42(454 bytes)
created at 2016/04/25 14:53:17
The creation time of this html file is 2017/10/25 11:09:45 (Wed Oct 25 11:09:45 2017).